import { defineStore } from "pinia";
import { ref } from "vue";
const usePayStore = defineStore("payStore", () => {
  // 记录 支付方式
  const payMethod = ref<PayMethod>("");
  //   记录预存金额
  const prestoreSum = ref<number>(0);
  //   支付的类型
  const payType = ref<PayType>("");
  // 支付金额
  const payMoney = ref(0);
  return {
    prestoreSum,
    payMethod,
    payType,
    payMoney,
  };
});
export default usePayStore;